#ifndef _USECASE_DECODER_H_
#define _USECASE_DECODER_H_

#if defined (__cplusplus)
    extern "C" {
#endif

#include "params_id_def.h"

#define DECODER_MAX_CHN  9

/* video */

#define TSK_UDP_RECV_VID_(ptr, id)  do{ \
                                    char str[32]; \
                                    snprintf(str, sizeof(str), TSK_UDP_RECV_VID_BASE"%d", id); \
                                    ptr = str; \
                                }while(0)

#define TSK_RTP_UNPACK_(ptr, id)  do{ \
                                    char str[32]; \
                                    snprintf(str, sizeof(str), TSK_RTP_UNPACK_BASE"%d", id); \
                                    ptr = str; \
                                }while(0)

#define TSK_HISI_DEC_SEND_STREAM_(ptr, id)  do{ \
                                                char str[32]; \
                                                snprintf(str, sizeof(str), TSK_HISI_DEC_SEND_STREAM_BASE"%d", id); \
                                                ptr = str; \
                                            }while(0)


int32_t decoder_start(od_framework_t * framework);
int32_t decoder_stop(od_framework_t * framework);


#if defined (__cplusplus)
    }
#endif

#endif


/*_*/

